from cProfile import label
from django import forms
from mdeditor.fields import MDTextFormField

class EditorForm(forms.Form):
	intro = MDTextFormField(label="介绍")
	last_year = forms.IntegerField(label="从几年级开始教我们", widget=forms.NumberInput(attrs={'class':'form-control'}))
	host_year = forms.IntegerField(label="教到了几年级", widget=forms.NumberInput(attrs={'class':'form-control'}))
	subject = forms.CharField(label="教哪一科", max_length=20, widget=forms.TextInput(attrs={'class':'form-control'}))
	name = forms.CharField(label="他的名字", max_length=20, widget=forms.TextInput(attrs={'class':'form-control'}))